package org.rcgwt.client.ui.grid.provider;


/**
 * Data Provider provide a row factory
 * 
 * @author Matthieu ROBERT
 */
public interface IRowsProvider<T> {

    /**
     * Request row data
     * 
     * @param callback
     *            {@link IDataLoadedCallback}
     */
    void load(IRowLoadedCallback<T> callback);

    /**
     * Request row data with index range
     * 
     * @param callback
     *            {@link IDataLoadedCallback}
     */
    void load(IRowLoadedCallback<T> callback, int start, int count);

}
